package org.appFactory.facebook;
import org.appFactory.shared.CarletonOAuthService;

import org.json.JSONException;
import org.json.JSONObject;


public interface FacebookService extends CarletonOAuthService { 
	
	// To get the login URL :- Pass this URL to client
	public String getOAuthDialogURL(String redirectURI);
	
	// To exchange code provided by FB for access_token
	public String exchangeCodeForToken(String code, String redirectURI);
	
	// Set Access_Token to the FB Service
	public void setAccessToken(String access_token);
	
	// Get User Info, pass  the access_token
	public JSONObject getUserInfo() throws JSONException;
	
	//Get Places Info,pass latitude and longitude
	public JSONObject getEvents(String latitude,String longitude,Integer distance);
	
	// Get Access Token Key to store the access token inside session
	public String getAccessTokenKey();


}
